echo "-----------------------------------"
echo "\n"
echo "      JaPyT installer v1.0
echo " (c) 2oo9 Disabler Production Lab.
echo "\n"
echo "-----------------------------------"

echo "\nDownload current revision"
svn co http://japyt.googlecode.com/svn/japyt

pkgrel=`svnversion "japyt/"`
sed "s/\(rXXX\)/r${pkgrel}/" -i "japyt/japyt.py"
echo "Patched to revision ${pkgrel}"

echo "Compile JaPyT"
cd japyt
python make.py

echo "Set permission"
sudo chmod 777 conference.db
sudo chmod 777 config.txt

echo "Done. Fill config.txt and execute 'python japyt.pyc'"
